package com.song.service.role;

import com.baomidou.mybatisplus.service.IService;
import com.song.common.Result;
import com.song.entity.role.Role;
import net.sf.json.JSONArray;

import java.util.List;

public interface RoleService extends IService<Role> {

    Result<List<Role>> selectRoleList(Role role, String startTime, String endTime, int pageNum, int pageSize);

    Result<Integer> batchDel(String[] array);

    Result<Integer> deleteRoleById(int roleId);

    Result<Integer> addRole(Role role);

    Result<Integer> updateRole(Role role);

    JSONArray getRoleTree();

    JSONArray getRoleTreeByUserId(Integer userId);

    JSONArray queryRoleTree();

}
